/**
 * 
 */
package com.taobao.wolfwolf.hibernate.service;

import java.util.List;

import com.taobao.wolfwolf.hibernate.pojo.ReceiverAddress;

/**
 * @author Tux
 *
 * 创建时间: 2011-4-29 上午09:53:48
 */
public interface ReceiverAddressService extends BaseService {
	/**
	 * 按id来查找
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public ReceiverAddress findById(int id);
	
	/**
	 * 按名称来查找
	 * @param name
	 * @return
	 */
	public List<ReceiverAddress> findByName(String name);
	
	/**
	 * 查找全部
	 * @return
	 */
	public List<ReceiverAddress> findAll();
	
	
	/**
	 * 获取全部客户的数量
	 * @return
	 */
	public long getTotal();
}
